<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkAction</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="Actions.html" title="基于行为的菜单和工具栏">
<link rel="prev" href="gtk3-GtkActionGroup.html" title="GtkActionGroup">
<link rel="next" href="gtk3-GtkToggleAction.html" title="GtkToggleAction">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="gtk3-GtkActionGroup.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Actions.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkToggleAction.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkAction.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkAction.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkAction"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkAction.top_of_page"></a>GtkAction</span></h2>
<p>GtkAction — An action which can be triggered by a menu or toolbar item</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkAction.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction">GtkAction</a>;
<a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="returnvalue">GtkAction</span></a> *         <a class="link" href="gtk3-GtkAction.html#gtk-action-new" title="gtk_action_new ()">gtk_action_new</a>                      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-name" title="gtk_action_get_name ()">gtk_action_get_name</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-is-sensitive" title="gtk_action_is_sensitive ()">gtk_action_is_sensitive</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-sensitive" title="gtk_action_get_sensitive ()">gtk_action_get_sensitive</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-sensitive" title="gtk_action_set_sensitive ()">gtk_action_set_sensitive</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> sensitive</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-is-visible" title="gtk_action_is_visible ()">gtk_action_is_visible</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-visible" title="gtk_action_get_visible ()">gtk_action_get_visible</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-visible" title="gtk_action_set_visible ()">gtk_action_set_visible</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-activate" title="gtk_action_activate ()">gtk_action_activate</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkAction.html#gtk-action-create-icon" title="gtk_action_create_icon ()">gtk_action_create_icon</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkAction.html#gtk-action-create-menu-item" title="gtk_action_create_menu_item ()">gtk_action_create_menu_item</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkAction.html#gtk-action-create-tool-item" title="gtk_action_create_tool_item ()">gtk_action_create_tool_item</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkAction.html#gtk-action-create-menu" title="gtk_action_create_menu ()">gtk_action_create_menu</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-proxies" title="gtk_action_get_proxies ()">gtk_action_get_proxies</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-connect-accelerator" title="gtk_action_connect_accelerator ()">gtk_action_connect_accelerator</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-disconnect-accelerator" title="gtk_action_disconnect_accelerator ()">gtk_action_disconnect_accelerator</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-block-activate" title="gtk_action_block_activate ()">gtk_action_block_activate</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-unblock-activate" title="gtk_action_unblock_activate ()">gtk_action_unblock_activate</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-always-show-image" title="gtk_action_get_always_show_image ()">gtk_action_get_always_show_image</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-always-show-image" title="gtk_action_set_always_show_image ()">gtk_action_set_always_show_image</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_show</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-accel-path" title="gtk_action_get_accel_path ()">gtk_action_get_accel_path</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-accel-path" title="gtk_action_set_accel_path ()">gtk_action_set_accel_path</a>           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);
<a href="../gobject/gobject-Closures.html#GClosure"><span class="returnvalue">GClosure</span></a> *          <a class="link" href="gtk3-GtkAction.html#gtk-action-get-accel-closure" title="gtk_action_get_accel_closure ()">gtk_action_get_accel_closure</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-accel-group" title="gtk_action_set_accel_group ()">gtk_action_set_accel_group</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup" title="struct GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-label" title="gtk_action_set_label ()">gtk_action_set_label</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-label" title="gtk_action_get_label ()">gtk_action_get_label</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-short-label" title="gtk_action_set_short_label ()">gtk_action_set_short_label</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *short_label</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-short-label" title="gtk_action_get_short_label ()">gtk_action_get_short_label</a>          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-tooltip" title="gtk_action_set_tooltip ()">gtk_action_set_tooltip</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-tooltip" title="gtk_action_get_tooltip ()">gtk_action_get_tooltip</a>              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-stock-id" title="gtk_action_set_stock_id ()">gtk_action_set_stock_id</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-stock-id" title="gtk_action_get_stock_id ()">gtk_action_get_stock_id</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-gicon" title="gtk_action_set_gicon ()">gtk_action_set_gicon</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);
<a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             <a class="link" href="gtk3-GtkAction.html#gtk-action-get-gicon" title="gtk_action_get_gicon ()">gtk_action_get_gicon</a>                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-icon-name" title="gtk_action_set_icon_name ()">gtk_action_set_icon_name</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkAction.html#gtk-action-get-icon-name" title="gtk_action_get_icon_name ()">gtk_action_get_icon_name</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-visible-horizontal" title="gtk_action_set_visible_horizontal ()">gtk_action_set_visible_horizontal</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible_horizontal</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-visible-horizontal" title="gtk_action_get_visible_horizontal ()">gtk_action_get_visible_horizontal</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-visible-vertical" title="gtk_action_set_visible_vertical ()">gtk_action_set_visible_vertical</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible_vertical</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-visible-vertical" title="gtk_action_get_visible_vertical ()">gtk_action_get_visible_vertical</a>     (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkAction.html#gtk-action-set-is-important" title="gtk_action_set_is_important ()">gtk_action_set_is_important</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_important</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkAction.html#gtk-action-get-is-important" title="gtk_action_get_is_important ()">gtk_action_get_is_important</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkAction.description"></a><h2>Description</h2>
<p>
Actions represent operations that the user can be perform, along with
some information how it should be presented in the interface. Each action
provides methods to create icons, menu items and toolbar items
representing itself.
</p>
<p>
As well as the callback that is called when the action gets activated,
the following also gets associated with the action:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>a name (not translated, for path lookup)</p></li>
<li class="listitem"><p>a label (translated, for display)</p></li>
<li class="listitem"><p>an accelerator</p></li>
<li class="listitem"><p>whether label indicates a stock id</p></li>
<li class="listitem"><p>a tooltip (optional, translated)</p></li>
<li class="listitem"><p>a toolbar label (optional, shorter than label)</p></li>
</ul></div>
<p>
The action will also have some state information:
</p>
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
<li class="listitem"><p>visible (shown/hidden)</p></li>
<li class="listitem"><p>sensitive (enabled/disabled)</p></li>
</ul></div>
<p>
Apart from regular actions, there are <a class="link" href="gtk3-GtkToggleAction.html#GtkToggleAction" title="struct GtkToggleAction">toggle
actions</a>, which can be toggled between two states and <a class="link" href="gtk3-GtkRadioAction.html#GtkRadioAction" title="struct GtkRadioAction">radio actions</a>, of which only one in a group
can be in the "active" state. Other actions can be implemented as <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
subclasses.
</p>
<p>
Each action can have one or more proxy widgets. To act as an action proxy,
widget needs to implement <a class="link" href="gtk3-GtkActivatable.html#GtkActivatable" title="GtkActivatable"><span class="type">GtkActivatable</span></a> interface. Proxies mirror the state
of the action and should change when the action's state changes. Properties
that are always mirrored by proxies are <span class="type">"sensitive"</span> and
<span class="type">"visible"</span>. <span class="type">"gicon"</span>, <span class="type">"icon-name"</span>, <span class="type">"label"</span>,
<span class="type">"short-label"</span> and <span class="type">"stock-id"</span> properties are only mirorred
if proxy widget has <span class="type">"use-action-appearance"</span> property set to
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
</p>
<p>
When the proxy is activated, it should activate its action.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkAction.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkAction"></a><h3>struct GtkAction</h3>
<pre class="programlisting">struct GtkAction {
  GObject object;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-new"></a><h3>gtk_action_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="returnvalue">GtkAction</span></a> *         gtk_action_new                      (<em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> object. To add the action to a
<a class="link" href="gtk3-GtkActionGroup.html#GtkActionGroup" title="struct GtkActionGroup"><span class="type">GtkActionGroup</span></a> and set the accelerator for the action,
call <a class="link" href="gtk3-GtkActionGroup.html#gtk-action-group-add-action-with-accel" title="gtk_action_group_add_action_with_accel ()"><code class="function">gtk_action_group_add_action_with_accel()</code></a>.
See <a class="xref" href="">???</a> for information on allowed action
names.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
<td>A unique name for the action</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>the label displayed in menu items and on buttons,
or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
<td>a tooltip for the action, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
<td>the stock icon to display in widgets representing
the action, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-name"></a><h3>gtk_action_get_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_name                 (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns the name of the action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the name of the action. The string belongs to GTK+ and should not
be freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-is-sensitive"></a><h3>gtk_action_is_sensitive ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_is_sensitive             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns whether the action is effectively sensitive.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action and its associated action group
are both sensitive.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-sensitive"></a><h3>gtk_action_get_sensitive ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_sensitive            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns whether the action itself is sensitive. Note that this doesn't 
necessarily mean effective sensitivity. See <a class="link" href="gtk3-GtkAction.html#gtk-action-is-sensitive" title="gtk_action_is_sensitive ()"><code class="function">gtk_action_is_sensitive()</code></a> 
for that.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action itself is sensitive.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-sensitive"></a><h3>gtk_action_set_sensitive ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_sensitive            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> sensitive</code></em>);</pre>
<p>
Sets the ::sensitive property of the action to <em class="parameter"><code>sensitive</code></em>. Note that 
this doesn't necessarily mean effective sensitivity. See 
<a class="link" href="gtk3-GtkAction.html#gtk-action-is-sensitive" title="gtk_action_is_sensitive ()"><code class="function">gtk_action_is_sensitive()</code></a> 
for that.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sensitive</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make the action sensitive</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-is-visible"></a><h3>gtk_action_is_visible ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_is_visible               (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns whether the action is effectively visible.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action and its associated action group
are both visible.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-visible"></a><h3>gtk_action_get_visible ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_visible              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns whether the action itself is visible. Note that this doesn't 
necessarily mean effective visibility. See <a class="link" href="gtk3-GtkAction.html#gtk-action-is-sensitive" title="gtk_action_is_sensitive ()"><code class="function">gtk_action_is_sensitive()</code></a> 
for that.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the action itself is visible.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-visible"></a><h3>gtk_action_set_visible ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_visible              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible</code></em>);</pre>
<p>
Sets the ::visible property of the action to <em class="parameter"><code>visible</code></em>. Note that 
this doesn't necessarily mean effective visibility. See 
<a class="link" href="gtk3-GtkAction.html#gtk-action-is-visible" title="gtk_action_is_visible ()"><code class="function">gtk_action_is_visible()</code></a> 
for that.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make the action visible</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-activate"></a><h3>gtk_action_activate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_activate                 (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Emits the "activate" signal on the specified action, if it isn't 
insensitive. This gets called by the proxy widgets when they get 
activated.
</p>
<p>
It can also be used to manually activate an action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-create-icon"></a><h3>gtk_action_create_icon ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_action_create_icon              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Themeable-Stock-Images.html#GtkIconSize" title="enum GtkIconSize"><span class="type">GtkIconSize</span></a> icon_size</code></em>);</pre>
<p>
This function is intended for use by action implementations to
create icons displayed in the proxy widgets.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_size</code></em> :</span></p></td>
<td>the size of the icon that should be created. <span class="annotation">[<acronym title="Override the parsed C type with given type"><span class="acronym">type</span></acronym> int]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a widget that displays the icon for this action. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-create-menu-item"></a><h3>gtk_action_create_menu_item ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_action_create_menu_item         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Creates a menu item widget that proxies for the given action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a menu item connected to the action. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-create-tool-item"></a><h3>gtk_action_create_tool_item ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_action_create_tool_item         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Creates a toolbar item widget that proxies for the given action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a toolbar item connected to the action. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-create-menu"></a><h3>gtk_action_create_menu ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_action_create_menu              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
If <em class="parameter"><code>action</code></em> provides a <a class="link" href="gtk3-GtkMenu.html#GtkMenu" title="struct GtkMenu"><span class="type">GtkMenu</span></a> widget as a submenu for the menu
item or the toolbar item it creates, this function returns an
instance of that menu.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the menu item provided by the
action, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.12</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-proxies"></a><h3>gtk_action_get_proxies ()</h3>
<pre class="programlisting"><a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="returnvalue">GSList</span></a> *            gtk_action_get_proxies              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns the proxy widgets for an action.
See also <a class="link" href="gtk3-GtkActivatable.html#gtk-activatable-get-related-action" title="gtk_activatable_get_related_action ()"><code class="function">gtk_activatable_get_related_action()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a <a href="../glib/glib-Singly-Linked-Lists.html#GSList"><span class="type">GSList</span></a> of proxy widgets. The list is owned by GTK+
and must not be modified. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-connect-accelerator"></a><h3>gtk_action_connect_accelerator ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_connect_accelerator      (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Installs the accelerator for <em class="parameter"><code>action</code></em> if <em class="parameter"><code>action</code></em> has an
accel path and group. See <a class="link" href="gtk3-GtkAction.html#gtk-action-set-accel-path" title="gtk_action_set_accel_path ()"><code class="function">gtk_action_set_accel_path()</code></a> and 
<a class="link" href="gtk3-GtkAction.html#gtk-action-set-accel-group" title="gtk_action_set_accel_group ()"><code class="function">gtk_action_set_accel_group()</code></a>
</p>
<p>
Since multiple proxies may independently trigger the installation
of the accelerator, the <em class="parameter"><code>action</code></em> counts the number of times this
function has been called and doesn't remove the accelerator until
<a class="link" href="gtk3-GtkAction.html#gtk-action-disconnect-accelerator" title="gtk_action_disconnect_accelerator ()"><code class="function">gtk_action_disconnect_accelerator()</code></a> has been called as many times.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-disconnect-accelerator"></a><h3>gtk_action_disconnect_accelerator ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_disconnect_accelerator   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Undoes the effect of one call to <a class="link" href="gtk3-GtkAction.html#gtk-action-connect-accelerator" title="gtk_action_connect_accelerator ()"><code class="function">gtk_action_connect_accelerator()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-block-activate"></a><h3>gtk_action_block_activate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_block_activate           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Disable activation signals from the action 
</p>
<p>
This is needed when updating the state of your proxy
<a class="link" href="gtk3-GtkActivatable.html#GtkActivatable" title="GtkActivatable"><span class="type">GtkActivatable</span></a> widget could result in calling <a class="link" href="gtk3-GtkAction.html#gtk-action-activate" title="gtk_action_activate ()"><code class="function">gtk_action_activate()</code></a>,
this is a convenience function to avoid recursing in those
cases (updating toggle state for instance).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-unblock-activate"></a><h3>gtk_action_unblock_activate ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_unblock_activate         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Reenable activation signals from the action
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-always-show-image"></a><h3>gtk_action_get_always_show_image ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_always_show_image    (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns whether <em class="parameter"><code>action</code></em>'s menu item proxies will ignore the
<span class="type">"gtk-menu-images"</span> setting and always show their image,
if available.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the menu item proxies will always show their image</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-always-show-image"></a><h3>gtk_action_set_always_show_image ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_always_show_image    (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> always_show</code></em>);</pre>
<p>
Sets whether <em class="parameter"><code>action</code></em>'s menu item proxies will ignore the
<span class="type">"gtk-menu-images"</span> setting and always show their image, if available.
</p>
<p>
Use this if the menu item would be useless or hard to use
without their image.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>always_show</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if menuitem proxies should always show their image</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.20</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-accel-path"></a><h3>gtk_action_get_accel_path ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_accel_path           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns the accel path for this action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the accel path for this action, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
if none is set. The returned string is owned by GTK+
and must not be freed or modified.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-accel-path"></a><h3>gtk_action_set_accel_path ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_accel_path           (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *accel_path</code></em>);</pre>
<p>
Sets the accel path for this action.  All proxy widgets associated
with the action will have this accel path, so that their
accelerators are consistent.
</p>
<p>
Note that <em class="parameter"><code>accel_path</code></em> string will be stored in a <a href="../glib/glib-Quarks.html#GQuark"><span class="type">GQuark</span></a>. Therefore, if you
pass a static string, you can save some memory by interning it first with 
<a href="../glib/glib-Quarks.html#g-intern-static-string"><code class="function">g_intern_static_string()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accel_path</code></em> :</span></p></td>
<td>the accelerator path</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-accel-closure"></a><h3>gtk_action_get_accel_closure ()</h3>
<pre class="programlisting"><a href="../gobject/gobject-Closures.html#GClosure"><span class="returnvalue">GClosure</span></a> *          gtk_action_get_accel_closure        (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Returns the accel closure for this action.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the accel closure for this action. The
returned closure is owned by GTK+ and must not be unreffed
or modified. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.8</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-accel-group"></a><h3>gtk_action_set_accel_group ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_accel_group          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup" title="struct GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> *accel_group</code></em>);</pre>
<p>
Sets the <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup" title="struct GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> in which the accelerator for this action
will be installed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>accel_group</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-Keyboard-Accelerators.html#GtkAccelGroup" title="struct GtkAccelGroup"><span class="type">GtkAccelGroup</span></a> or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-label"></a><h3>gtk_action_set_label ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_label                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *label</code></em>);</pre>
<p>
Sets the label of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>label</code></em> :</span></p></td>
<td>the label text to set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-label"></a><h3>gtk_action_get_label ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_label                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the label text of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the label text</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-short-label"></a><h3>gtk_action_set_short_label ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_short_label          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *short_label</code></em>);</pre>
<p>
Sets a shorter label text on <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>short_label</code></em> :</span></p></td>
<td>the label text to set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-short-label"></a><h3>gtk_action_get_short_label ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_short_label          (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the short label text of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the short label text.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-tooltip"></a><h3>gtk_action_set_tooltip ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_tooltip              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *tooltip</code></em>);</pre>
<p>
Sets the tooltip text on <em class="parameter"><code>action</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>tooltip</code></em> :</span></p></td>
<td>the tooltip text</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-tooltip"></a><h3>gtk_action_get_tooltip ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_tooltip              (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the tooltip text of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the tooltip text</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-stock-id"></a><h3>gtk_action_set_stock_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_stock_id             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *stock_id</code></em>);</pre>
<p>
Sets the stock id on <em class="parameter"><code>action</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>stock_id</code></em> :</span></p></td>
<td>the stock id</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-stock-id"></a><h3>gtk_action_get_stock_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_stock_id             (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the stock id of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the stock id</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-gicon"></a><h3>gtk_action_set_gicon ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_gicon                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../gio/GIcon.html"><span class="type">GIcon</span></a> *icon</code></em>);</pre>
<p>
Sets the icon of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon</code></em> :</span></p></td>
<td>the <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> to set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-gicon"></a><h3>gtk_action_get_gicon ()</h3>
<pre class="programlisting"><a href="../gio/GIcon.html"><span class="returnvalue">GIcon</span></a> *             gtk_action_get_gicon                (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the gicon of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The action's <a href="../gio/GIcon.html"><span class="type">GIcon</span></a> if one is set. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-icon-name"></a><h3>gtk_action_set_icon_name ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_icon_name            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *icon_name</code></em>);</pre>
<p>
Sets the icon name on <em class="parameter"><code>action</code></em>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>icon_name</code></em> :</span></p></td>
<td>the icon name to set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-icon-name"></a><h3>gtk_action_get_icon_name ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_action_get_icon_name            (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Gets the icon name of <em class="parameter"><code>action</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the icon name</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-visible-horizontal"></a><h3>gtk_action_set_visible_horizontal ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_visible_horizontal   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible_horizontal</code></em>);</pre>
<p>
Sets whether <em class="parameter"><code>action</code></em> is visible when horizontal
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible_horizontal</code></em> :</span></p></td>
<td>whether the action is visible horizontally</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-visible-horizontal"></a><h3>gtk_action_get_visible_horizontal ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_visible_horizontal   (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Checks whether <em class="parameter"><code>action</code></em> is visible when horizontal
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>action</code></em> is visible when horizontal</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-visible-vertical"></a><h3>gtk_action_set_visible_vertical ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_visible_vertical     (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> visible_vertical</code></em>);</pre>
<p>
Sets whether <em class="parameter"><code>action</code></em> is visible when vertical
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>visible_vertical</code></em> :</span></p></td>
<td>whether the action is visible vertically</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-visible-vertical"></a><h3>gtk_action_get_visible_vertical ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_visible_vertical     (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Checks whether <em class="parameter"><code>action</code></em> is visible when horizontal
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>action</code></em> is visible when horizontal</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-set-is-important"></a><h3>gtk_action_set_is_important ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_action_set_is_important         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> is_important</code></em>);</pre>
<p>
Sets whether the action is important, this attribute is used
primarily by toolbar items to decide whether to show a label
or not.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>the action object</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>is_important</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to make the action important</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-action-get-is-important"></a><h3>gtk_action_get_is_important ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_action_get_is_important         (<em class="parameter"><code><a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a> *action</code></em>);</pre>
<p>
Checks whether <em class="parameter"><code>action</code></em> is important or not
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>action</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkAction.html#GtkAction" title="struct GtkAction"><span class="type">GtkAction</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether <em class="parameter"><code>action</code></em> is important</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.16</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkAction.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkActionGroup.html#GtkActionGroup" title="struct GtkActionGroup"><span class="type">GtkActionGroup</span></a>, <a class="link" href="gtk3-GtkUIManager.html#GtkUIManager" title="struct GtkUIManager"><span class="type">GtkUIManager</span></a>, <a class="link" href="gtk3-GtkActivatable.html#GtkActivatable" title="GtkActivatable"><span class="type">GtkActivatable</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>